package com.topfinance.cnaps2.ebo;

// Generated 2009-6-19 13:56:29 by Hibernate Tools 3.2.2.GA

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * SysDepartment generated by hbm2java
 */
@Entity
@Table(name = "T_CONF_ROUTERULE")
public class ConfRouteRuleEbo implements java.io.Serializable {

	//oid	主键	integer
    private Integer uid;

	//op_seq	序号	integer
    private Integer opseq;

	//op_name	操作名称	varchar2(200)
    private String opname;

	//op_name	操作名称	varchar2(200)
    private String name;

	//outport_id	接出端口名称	integer
	private ConfOutPortEbo outportEbo;
	//inport_id	接入端口名称	integer
	private ConfInPortEbo inportEbo;

	//direction	方向	varchar2(200)
	private String direction;

	@Id
	@Column(name = "OID", unique = true, nullable = false)
	@SequenceGenerator(name = "CONF_ROUTERULE_GEN", sequenceName = "S_CONF_ROUTERULE")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "CONF_ROUTERULE_GEN")
    public Integer getUid() {
        return this.uid;
    }
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Column(name = "op_seq")
    public Integer getOpseq() {
		return opseq;
	}
	public void setOpseq(Integer opseq) {
		this.opseq = opseq;
	}

	@ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "outport_id")
	public ConfOutPortEbo getOutportEbo() {
		return outportEbo;
	}
	public void setOutportEbo(ConfOutPortEbo outportEbo) {
		this.outportEbo = outportEbo;
	}
	
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "inport_id")
    public ConfInPortEbo getInportEbo() {
        return this.inportEbo;
    }
	public void setInportEbo(ConfInPortEbo inportEbo) {
		this.inportEbo = inportEbo;
	}
    
    @Column(name = "direction")
    public String getDirection() {
        return this.direction;
    }
    public void setDirection(String direction) {
        this.direction = direction;
    }
    
    @Column(name = "op_name")
    public String getOpname() {
        return this.opname;
    }
    public void setOpname(String opname) {
        this.opname = opname;
    }
    
    @Column(name = "name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}    
}
